<template>
  <div class="h-100 d-flex flex-column justify-content-center align-items-center">
    <el-button type="primary" @click="$router.push({name: 'blog-type', params: {type: 'all'}})">博客布局</el-button>
    <div>{{html}}</div>
  </div>
</template>

<script>
// import Vue from 'vue';
export default {
  // async asyncData ({ params, error}) {
  //   try {
  //     let {data} = await Vue.get('http://127.0.0.1:8090/')
  //     return { html: data };
  //   } catch (error) {
  //     error({ statusCode: 404, message: 'Post not found' })
  //   }
  // },
  data() {
    return {}
  },
}
</script>